<?php

use Illuminate\Database\Seeder;

class home_usersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        for ($i=1; $i<=10; $i++) {

            DB::table('home_users')->insert([
                'nickname' => 'jack'."{$i}",
                'username' => 'jack'."{$i}",
                'password' => bcrypt('123'),
                'sex' => mt_rand(1,2),
                'address' => '兄弟连3楼'."{$i}",
                'code' => 510000+$i,
                'user_level_id' => 1,
                'phone' => 15645678900+$i,
                'email' => 'test'.$i.'@163.com',
                'user_score' => mt_rand(1,999),
                'state' => mt_rand(0,1),
                'sign_time' => date('Y-m-d H:i:s'),
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s'),
            ]);
        }
    }
}
